package main;
import java.io.FileNotFoundException;
import java.io.IOException;

import edu.washington.cs.knowitall.nlp.ChunkedSentence;
import edu.washington.cs.knowitall.nlp.OpenNlpChunkedSentenceParser;
import edu.washington.cs.knowitall.nlp.OpenNlpSentenceChunker;
import edu.washington.cs.knowitall.nlp.OpenNlpUtils;


public class ChunkerTest {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args) throws FileNotFoundException, IOException {
		
		OpenNlpSentenceChunker onlpsc = new OpenNlpSentenceChunker();
		
		ChunkedSentence te = onlpsc.chunkSentence("Senate_Judiciary_Committee_Chairman_Orrin_G._Hatch (R-Utah) said that while " +
				"Aiken would not have been his choice, she \"demonstrated to me that she " +
				"understands the proper role of a federal judge in our constitutional system.\"");
				
		System.out.println(te.getTokensAsString());
		
//		ChunkedSentence t = new ChunkedSentence(te.getTokens(), te.getPosTags(), null);
//		
//		OpenNlpChunkedSentenceParser onlpcsp = new OpenNlpChunkedSentenceParser();
//
//		onlpcsp.parseSentence(t.getTokensAsString());
		
	}

}
